import request from '@/utils/request'

// 查询外委资产父列表
export function listEntrancelist(query) {
  return request({
    url: '/erp/propertyRegistrationRecord/wwflist',
    method: 'get',
    params: query
  })
}

// 生产列表子菜单查询
export function listEntrancelistChild(query) {
  return request({
    url: '/erp/propertyRegistrationRecord/wwchildlist/' + query.id,
    method: 'get',
    params: query
  })
}

// 外委
export function submitOutsource(data) {
  return request({
    url: '/erp/propertyRegistrationRecord/outsource',
    method: 'post',
    data
  })
}
